package cn.loan.dao;

import cn.loan.entity.Cycle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 19:19 2019/3/21
 */
@Mapper
public interface CycleMapper {

    /**
     * 查询所有分期周期
     * @return
     */
    List<Cycle> findAllCycle();


    /**
     * 得到分期期数
     * @param cycleId
     * @return
     */
    int findByStages(int cycleId);
}
